package com.quectel.business.dms.application.access.accessor.ieg.model;

import lombok.*;

import java.util.Date;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DeviceFaceSendCmd {

    /**
     * 操作类型 1新增 2删除
     */
    private Byte type;

    private List<DeviceInfo> deviceInfoList;

    @Data
    public static class DeviceInfo {
        /**
         * 租户 id
         */
        private Long tenantId;
        /**
         * 设备唯一编码
         */
        private String deviceUniqueId;
        /**
         * 人脸信息
         */
        private List<PersonFaceInfo> personFaceInfoList;

        @Data
        public static class PersonFaceInfo {
            private Long personId;
            private Byte personType;
            private String name;
            private Byte sex;
            private String jobNo;
            private String cardNumber;
            private String mobile;
            private String faceImg;
            private Date timeStart;
            private Date timeEnd;
        }
    }

    @AllArgsConstructor
    public enum TypeEnum {
        ADD((byte) 1),
        DEL((byte) 2);

        @Getter
        private Byte type;
    }
}
